package com.yenlien.traceyun.business.dao;


import com.yenlien.traceyun.business.entity.Unit;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;

import java.util.List;

/**
 * Created by LiuSha on 2020/6/16.
 */
public interface UnitDao extends BaseJpaDao<Unit> {
    Unit findById(String id);

    List<Unit> findByCompanyId(String companyId);

    Unit findByNameAndCompanyId(String name, String companyId);
}
